home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 26.zip / BS1 part 26 / C for beginners.adf / source / strcmp.c < prev    next >
Text File  |  1978-01-17  |  697b  |  21 lines

  1. /* Filename: "strcmp.c" */
  2. /**********************************************************************/
  3. /* Name:          strcmp                                              */
  4. /* Parameter:     s (String), t (String)                              */
  5. /* Return value: identical 0 not identical 1                          */
  6. /* Function:      Compares "s" and "t"                                */
  7. /* Other:         -                                                   */
  8. /**********************************************************************/
  9.  
  10. strcmp(s,t)
  11. register char *s, *t;
  12. {
  13.   register int identical;
  14.   while(identical = c_comp(*s, *t++) )
  15.     if(!*s++)
  16.       return(0);
  17.   return(!identical);
  18. }
  19.  
  20.  
  21.